package com.feng.zhihao.apigeteway.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ReqInfoFlow entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "REQ_INFO_FLOW")

public class ReqInfoFlow implements java.io.Serializable {

	// Fields

	private String gwFlowId;
	private String flowId;
	private String projectId;
	private String modularId;
	private String interfaceId;
	private String channelId;
	private Timestamp reqTimestamp;
	private Timestamp resTimestamp;
	private String reqBody;
	private String resBody;
	private String resCode;
	private String resMessage;
	private Boolean reqSuccess;

	// Constructors

	/** default constructor */
	public ReqInfoFlow() {
	}

	/** minimal constructor */
	public ReqInfoFlow(String gwFlowId) {
		this.gwFlowId = gwFlowId;
	}

	/** full constructor */
	public ReqInfoFlow(String gwFlowId, String flowId, String projectId, String modularId, String interfaceId,
			String channelId, Timestamp reqTimestamp, Timestamp resTimestamp, String reqBody, String resBody,
			String resCode, String resMessage, Boolean reqSuccess) {
		this.gwFlowId = gwFlowId;
		this.flowId = flowId;
		this.projectId = projectId;
		this.modularId = modularId;
		this.interfaceId = interfaceId;
		this.channelId = channelId;
		this.reqTimestamp = reqTimestamp;
		this.resTimestamp = resTimestamp;
		this.reqBody = reqBody;
		this.resBody = resBody;
		this.resCode = resCode;
		this.resMessage = resMessage;
		this.reqSuccess = reqSuccess;
	}

	// Property accessors
	@Id

	@Column(name = "GW_FLOW_ID", unique = true, nullable = false, length = 36)

	public String getGwFlowId() {
		return this.gwFlowId;
	}

	public void setGwFlowId(String gwFlowId) {
		this.gwFlowId = gwFlowId;
	}

	@Column(name = "FLOW_ID", length = 512)

	public String getFlowId() {
		return this.flowId;
	}

	public void setFlowId(String flowId) {
		this.flowId = flowId;
	}

	@Column(name = "PROJECT_ID", length = 36)

	public String getProjectId() {
		return this.projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	@Column(name = "MODULAR_ID", length = 36)

	public String getModularId() {
		return this.modularId;
	}

	public void setModularId(String modularId) {
		this.modularId = modularId;
	}

	@Column(name = "INTERFACE_ID", length = 36)

	public String getInterfaceId() {
		return this.interfaceId;
	}

	public void setInterfaceId(String interfaceId) {
		this.interfaceId = interfaceId;
	}

	@Column(name = "CHANNEL_ID", length = 36)

	public String getChannelId() {
		return this.channelId;
	}

	public void setChannelId(String channelId) {
		this.channelId = channelId;
	}

	@Column(name = "REQ_TIMESTAMP", length = 19)

	public Timestamp getReqTimestamp() {
		return this.reqTimestamp;
	}

	public void setReqTimestamp(Timestamp reqTimestamp) {
		this.reqTimestamp = reqTimestamp;
	}

	@Column(name = "RES_TIMESTAMP", length = 19)

	public Timestamp getResTimestamp() {
		return this.resTimestamp;
	}

	public void setResTimestamp(Timestamp resTimestamp) {
		this.resTimestamp = resTimestamp;
	}

	@Column(name = "REQ_BODY", length = 65535)

	public String getReqBody() {
		return this.reqBody;
	}

	public void setReqBody(String reqBody) {
		this.reqBody = reqBody;
	}

	@Column(name = "RES_BODY", length = 65535)

	public String getResBody() {
		return this.resBody;
	}

	public void setResBody(String resBody) {
		this.resBody = resBody;
	}

	@Column(name = "RES_CODE", length = 128)

	public String getResCode() {
		return this.resCode;
	}

	public void setResCode(String resCode) {
		this.resCode = resCode;
	}

	@Column(name = "RES_MESSAGE", length = 512)

	public String getResMessage() {
		return this.resMessage;
	}

	public void setResMessage(String resMessage) {
		this.resMessage = resMessage;
	}

	@Column(name = "REQ_SUCCESS")

	public Boolean getReqSuccess() {
		return this.reqSuccess;
	}

	public void setReqSuccess(Boolean reqSuccess) {
		this.reqSuccess = reqSuccess;
	}

}